package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsActivityGetMoments;
/**
 * 获取朋友圈活动详情
 * @author wliu
 * edit tse
 */
public class MomentsActivityGetResponse extends RudderResponse{
    
    private String activityId = "";
		
    
    private String title = "";
		
    
    private String desc = "";
		
    
    private String mainPic = "";
		
    
    private String endTime = "";
		
    
    private List<MomentsActivityGetMoments> moments = new ArrayList<MomentsActivityGetMoments>();
		
	
    /**
     * @return activityId
     */	
    public String getActivityId() { 
	    return this.activityId;
    };
	
	/**
     * @return activityId
     */	
    public void setActivityId(String activityId) { 
        this.activityId = activityId;
    };
    
    /**
     * @return title
     */	
    public String getTitle() { 
	    return this.title;
    };
	
	/**
     * @return title
     */	
    public void setTitle(String title) { 
        this.title = title;
    };
    
    /**
     * @return desc
     */	
    public String getDesc() { 
	    return this.desc;
    };
	
	/**
     * @return desc
     */	
    public void setDesc(String desc) { 
        this.desc = desc;
    };
    
    /**
     * @return mainPic
     */	
    public String getMainPic() { 
	    return this.mainPic;
    };
	
	/**
     * @return mainPic
     */	
    public void setMainPic(String mainPic) { 
        this.mainPic = mainPic;
    };
    
    /**
     * @return endTime
     */	
    public String getEndTime() { 
	    return this.endTime;
    };
	
	/**
     * @return endTime
     */	
    public void setEndTime(String endTime) { 
        this.endTime = endTime;
    };
    
    /**
     * @return moments
     */	
    public List<MomentsActivityGetMoments> getMoments() { 
	    return this.moments;
    };
	
	/**
     * @return moments
     */	
    public void setMoments(List<MomentsActivityGetMoments> moments) { 
        this.moments = moments;
    };
    
	
        
    private static void filterFor(MomentsActivityGetMoments moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getIsFollowed() == null) {
            moments.setIsFollowed("");
        }
        if (moments.getIsLiked() == null) {
            moments.setIsLiked("");
        }
        if (moments.getIsDeleted() == null) {
            moments.setIsDeleted("");
        }
        if (moments.getLikeNum() == null) {
            moments.setLikeNum("");
        }
        if (moments.getContent() == null) {
            moments.setContent("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getShareLink() == null) {
            moments.setShareLink("");
        }
        if (moments.getCreateTime() == null) {
            moments.setCreateTime("");
        }
        if (moments.getShareTitle() == null) {
            moments.setShareTitle("");
        }
        if (moments.getShareDescription() == null) {
            moments.setShareDescription("");
        }
    }
        
    public static void filter(MomentsActivityGetResponse moments) {
        if (moments.getActivityId() == null) {
            moments.setActivityId("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
        if (moments.getDesc() == null) {
            moments.setDesc("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getEndTime() == null) {
            moments.setEndTime("");
        }
        if (moments.getMoments() == null) {
            moments.setMoments(new ArrayList<MomentsActivityGetMoments>());
        } else {
            for (MomentsActivityGetMoments item : moments.getMoments()) {
                filterFor(item);
            }
        }
    }
}
